<!DOCTYPE html>
<html>
<head>
<title>客户主数据</title>
#parse("sys/header.html")
</head>
<body>
<div id="rrapp" v-cloak>
	<div v-show="showList">
		<div class="grid-btn">
			<div class="form-group col-sm-2">
				<input type="text" class="form-control" v-model="q.status" @keyup.enter="query" placeholder="单位名称">
			</div>
			<a class="btn btn-default" @click="query">查询</a>
			#if($shiro.hasPermission("custombaseinfo:select"))
			<a class="btn btn-default" @click="visit">拜访</a>
			#end
			<!--#if($shiro.hasPermission("custombaseinfo:save"))-->
			<!--<a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>-->
			<!--#end-->
			<!--#if($shiro.hasPermission("custombaseinfo:update"))-->
			<!--<a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>-->
			<!--#end-->
			<!--#if($shiro.hasPermission("custombaseinfo:delete"))-->
			<!--<a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>-->
			<!--#end-->
		</div>

	    <table id="jqGrid"></table>
	    <div id="jqGridPager"></div>
    </div>
    
    <div v-show="!showList" class="panel panel-default">
		<div class="panel-heading">{{title}}</div>
		<form class="form-horizontal">
			<div class="form-group">
			   	<div class="col-sm-1 control-label">单位名称</div>
			   	<div class="col-sm-2">
			      <input type="text" class="form-control" v-model="customBaseinfo.unitName" placeholder="单位名称"/>
			    </div>

			   	<div class="col-sm-1 control-label">单位简码</div>
			   	<div class="col-sm-2">
			      <input type="text" class="form-control" v-model="customBaseinfo.unitCode" placeholder="单位简码"/>
			    </div>

			   	<div class="col-sm-1 control-label">单位性质(国有/合资/私营/其他)</div>
			   	<div class="col-sm-2">
			      <input type="text" class="form-control" v-model="customBaseinfo.unitNature" placeholder="单位性质(国有/合资/私营/其他)"/>
			    </div>
			</div>
			<div class="form-group">
			   	<div class="col-sm-1 control-label">法人代表</div>
			   	<div class="col-sm-2">
			      <input type="text" class="form-control" v-model="customBaseinfo.legalPerson" placeholder="法人代表"/>
			    </div>

			   	<div class="col-sm-1 control-label">单位地址</div>
			   	<div class="col-sm-2">
			      <input type="text" class="form-control" v-model="customBaseinfo.unitAddress" placeholder="单位地址"/>
			    </div>

			   	<div class="col-sm-1 control-label">企业电话</div>
			   	<div class="col-sm-2">
			      <input type="text" class="form-control" v-model="customBaseinfo.unitTel" placeholder="企业电话"/>
			    </div>
			</div>
			<div class="form-group">
			   	<div class="col-sm-1 control-label">创建者</div>
			   	<div class="col-sm-2">
			      <input type="text" class="form-control" v-model="customBaseinfo.createBy" placeholder="创建者"/>
			    </div>

			   	<div class="col-sm-1 control-label">创建时间</div>
			   	<div class="col-sm-2">
			      <input type="text" class="form-control" v-model="customBaseinfo.createDate" placeholder="创建时间"/>
			    </div>

			   	<div class="col-sm-1 control-label">逻辑删除标记（0：显示；1：隐藏）</div>
			   	<div class="col-sm-2">
			      <input type="text" class="form-control" v-model="customBaseinfo.delFlag" placeholder="逻辑删除标记（0：显示；1：隐藏）"/>
			    </div>
			</div>
							<div class="form-group">
				<div class="col-sm-2 control-label"></div> 
				<input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
				&nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
			</div>
		</form>
	</div>

	<!-- 弹出框 -->
	<div id="popLayer" style="display: none;padding:10px;">
		<form class="form-horizontal">
			<div class="form-group">
				<div class="col-sm-1 control-label">单位名称</div>
				<div class="col-sm-2">
					<input type="text" class="form-control" v-model="customVisit.unitName" placeholder="单位名称" readonly="readonly"/>
				</div>

				<div class="col-sm-1 control-label">单位编码</div>
				<div class="col-sm-2">
					<input type="text" class="form-control" v-model="customVisit.unitId" placeholder="单位编码" readonly="readonly" />
				</div>

				<div class="col-sm-1 control-label">企业联系人</div>
				<div class="col-sm-2">
					<input type="text" class="form-control" v-model="customVisit.contactName" placeholder="企业联系人"/>
				</div>
			</div>

			<div class="form-group">
				<div class="col-sm-1 control-label">联系人岗位</div>
				<div class="col-sm-2">
					<input type="text" class="form-control" v-model="customVisit.contactJob" placeholder="联系人岗位"/>
				</div>

				<div class="col-sm-1 control-label">拜访形式</div>
				<div class="col-sm-2">
					<!--<input type="text" class="form-control" v-model="customVisit.visitForm" placeholder="拜访形式"/>-->
					<select v-model="customVisit.visitForm" class="form-control">
						<option v-for="list in visitStyleList" :value="list.value">{{list.label}}</option>
					</select>
				</div>

				<div class="col-sm-1 control-label">拜访地点</div>
				<div class="col-sm-2">
					<input type="text" class="form-control" v-model="customVisit.visitAddress" placeholder="拜访地点"/>
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-1 control-label">拜访时间</div>
				<div class="col-sm-2">
					<input type="text" class="form-control" v-model="customVisit.visitTime" placeholder="拜访时间"
						   id="visitTime" onClick="WdatePicker({dateFmt:'yyyy-MM-dd'})"  readonly="readonly"/>
				</div>

				<div class="col-sm-1 control-label">联系方式</div>
				<div class="col-sm-2">
					<input type="text" class="form-control" v-model="customVisit.visitTel" placeholder="联系方式"/>
				</div>

				<div class="col-sm-1 control-label">拜访内容</div>
				<div class="col-sm-2">
					<input type="text" class="form-control" v-model="customVisit.visitContent" placeholder="拜访内容"/>
				</div>
			</div>
			<!--<div class="form-group">-->
			<!--<div class="col-sm-2 control-label"></div>-->
			<!--<input type="button" class="btn btn-primary" @click="saveCustomVisit" value="确定"/>-->
			<!--&nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>-->
			<!--</div>-->
		</form>
	</div>

</div>



<script src="${rc.contextPath}/js/custom/custombaseinfo.js?_${date.systemTime}"></script>
</body>
</html>